import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'



const routes: Array<RouteRecordRaw> = [
  //首页路由
  {
    path: '/',
    name: 'home',
    component: () => import(/* webpackChunkName: "about" */ '../views/Home.vue'),
    meta: {
      keepAlive: true
    }
  },

  //通知路由
  {
    path: '/noticesDetail',
    name: 'noticesDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/pages/notice/detail.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/noticesLists',
    name: 'noticesLists',
    component: () => import(/* webpackChunkName: "about" */ '../views/pages/notice/lists.vue'),
    meta: {
      keepAlive: true
    }
  },
    //新闻路由
  {
    path: '/newsDetail',
    name: 'newsDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/pages/news/detail.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/newsLists',
    name: 'newsLists',
    component: () => import(/* webpackChunkName: "about" */ '../views/pages/news/lists.vue'),
    meta: {
      keepAlive: true
    }
  },
    //下载路由
  {
    path: '/downloadDetail',
    name: 'downloadDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/pages/download/detail.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/downloadLists',
    name: 'downloadLists',
    component: () => import(/* webpackChunkName: "about" */ '../views/pages/download/lists.vue'),
    meta: {
      keepAlive: true
    }
  },
  // 双创之星路由
  {
    path: '/starDetail',
    name: 'starDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/pages/star/detail.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/starList',
    name: 'starList',
    component: () => import(/* webpackChunkName: "about" */ '../views/pages/star/lists.vue'),
    meta: {
      keepAlive: true
    }
  },
  //学院路由
  {
    path: '/academyBrief',
    name: 'academyBrief',
    component: () => import(/* webpackChunkName: "about" */ '../views/academy/brief/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/academyInstitution',
    name: 'academyInstitution',
    component: () => import(/* webpackChunkName: "about" */ '../views/academy/institution/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/academyWorker',
    name: 'academyWorker',
    component: () => import(/* webpackChunkName: "about" */ '../views/academy/worker/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/academyMentor',
    name: 'academyMentor',
    component: () => import(/* webpackChunkName: "about" */ '../views/academy/mentor/index.vue'),
    meta: {
      keepAlive: true
    }
  },
    //创客梦工厂
  {
    path: '/makerCore',
    name: 'makerCore',
    component: () => import(/* webpackChunkName: "about" */ '../views/maker/core/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/makerSpace',
    name: 'makerSpace',
    component: () => import(/* webpackChunkName: "about" */ '../views/maker/space/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/makerBar',
    name: 'makerBar',
    component: () => import(/* webpackChunkName: "about" */ '../views/maker/bar/index.vue'),
    meta: {
      keepAlive: true
    }
  },
    //双创项目
  {
    path: '/bigMakeProject',
    name: 'bigMakeProject',
    component: () => import(/* webpackChunkName: "about" */ '../views/doubleMake/project/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/makeFundProject',
    name: 'makeFundProject',
    component: () => import(/* webpackChunkName: "about" */ '../views/doubleMake/fund/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/makeProjectPerformance',
    name: 'makeProjectPerformance',
    component: () => import(/* webpackChunkName: "about" */ '../views/doubleMake/performance/index.vue'),
    meta: {
      keepAlive: true
    }
  },
    //互联网+大赛
  {
    path: '/internetProjectBrief',
    name: 'internetProjectBrief',
    component: () => import(/* webpackChunkName: "about" */ '../views/internet/brief/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/internetPerformance',
    name: 'internetPerformance',
    component: () => import(/* webpackChunkName: "about" */ '../views/internet/perform/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/internetEntrepreService',
    name: 'internetEntrepreService',
    component: () => import(/* webpackChunkName: "about" */ '../views/internet/entrepre/index.vue'),
    meta: {
      keepAlive: true
    }
  },
    //规章制度
  {
    path: '/ruleAcademyDuty',
    name: 'ruleAcademyDuty',
    component: () => import(/* webpackChunkName: "about" */ '../views/rule/duty/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/ruleInnovateDuty',
    name: 'ruleInnovateDuty',
    component: () => import(/* webpackChunkName: "about" */ '../views/rule/innovate/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/ruleSecurityManage',
    name: 'ruleSecurityManage',
    component: () => import(/* webpackChunkName: "about" */ '../views/rule/security/index.vue'),
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/ruleUseProcess',
    name: 'ruleUseProcess',
    component: () => import(/* webpackChunkName: "about" */ '../views/rule/use/index.vue'),
    meta: {
      keepAlive: true
    }
  },
    //后台管理
  {
    path: '/layout',
    name: 'layout',
    component: () => import(/* webpackChunkName: "about" */ '../layout/the-index.vue'),
    children :[
      //后台首页
      {
        path: 'home1',
        name: 'Home1',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/the-home.vue'),
        meta: {
          keepAlive: false
        }
      },
        //要闻管理
      {
        path: 'news',
        name: 'News',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/news/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
        //通知管理
      {
        path: 'notices',
        name: 'Notices',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/notices/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      //文件管理
      {
        path: 'files',
        name: 'Files',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/file/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      //competition
      {
        path: 'competition',
        name: 'Competition',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/competition/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'performance1',
        name: 'Performance1',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/internet/performance/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      //双创之星
      {
        path: 'star',
        name: 'Star',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/stars/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      //policy
      {
        path: 'policy',
        name: 'Policy',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/policy/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      //project
      {
        path: 'project',
        name: 'Project',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/project/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
        //学院概况
      {
        path: 'academyBrief',
        name: 'AcademyBrief',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/academy/brief/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'institution',
        name: 'Institution',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/academy/institution/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'worker',
        name: 'Worker',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/academy/worker/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'mentor',
        name: 'Mentor',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/academy/mentor/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      //创客梦工厂
      {
        path: 'bar',
        name: 'Bar',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/maker/bar/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'core',
        name: 'Core',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/maker/core/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'space',
        name: 'Space',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/maker/space/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      //双创项目
      {
        path: 'bigMake',
        name: 'BigMake',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/doubleMake/project/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'makeFund',
        name: 'MakeFund',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/doubleMake/fund/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'performance',
        name: 'Performance',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/doubleMake/performance/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      //互联网+大赛
      {
        path: 'projectBrief',
        name: 'ProjectBrief',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/internet/brief/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      //规章制度
      {
        path: 'academyDuty',
        name: 'AcademyDuty',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/rule/duty/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'innovateDuty',
        name: 'InnovateDuty',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/rule/innovate/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'securityManage',
        name: 'SecurityManage',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/rule/security/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'useProcess',
        name: 'UseProcess',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/rule/use/the-index.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: 'carousel',
        name: 'Carousel',
        component: () => import(/* webpackChunkName: "about" */ '../layout/views/carousel/the-index.vue'),
        meta: {
          keepAlive: false
        }
      }
    ],
    meta: {
      keepAlive: false
    }
  },
    //用户登录
  {
    path: '/admin',
    name: 'Admin',
    component: () => import(/* webpackChunkName: "about" */ '../layout/user/login/the-index.vue'),
    meta: {
      keepAlive: false
    }
  },
  //用户注册
  {
    path: '/register',
    name: 'Register',
    component: () => import(/* webpackChunkName: "about" */ '../layout/user/register/the-index.vue'),
    meta: {
      keepAlive: false
    }
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
